const express = require('express')

const app = express()

//  处理跨域
const cors = require("cors")
app.use(cors())


const routerOne = require('./router/one')
const routerTwo = require('./router/two')
const routerThree = require('./router/three')
const routerFour = require('./router/four')

app.use('/one',routerOne)
app.use('/two',routerTwo)
app.use('/three',routerThree)
app.use('/four',routerFour)

app.listen(80,function(){
    console.log('启动服务器端口 http://localhost/one/data ')
})